import request from '@/utils/axios'

export default {

	// 发送邮件
	send: (data) => request({
		url: 'ems/send',
		method: 'post',
		data
	}),
	// 注册
	register: (data) => request({
		url: 'user/register',
		method: 'post',
		data
	}),
	// 登录
	login: (data) => request({
		url: 'user/login',
		method: 'post',
		data
	}),

	// 个人信息
	userIndex: (data) => request({
		url: 'user/index',
		method: 'post',
		data
	}),
	// 忘记密码/重置密码
	resetpwd: (data) => request({
		url: 'user/resetpwd',
		method: 'post',
		data
	}),
	captcha: (data) => request({
		url: 'common/captcha',
		method: 'post',
		data
	}),

	createQrcodeImage: (data) => request({
		url: 'index/createQrcodeImage',
		method: 'post',
		data
	}),





	// 关注
	follow: (data) => request({
		url: 'user/follow',
		method: 'post',
		data
	}),
	// 取消关注
	unfollow: (data) => request({
		url: 'user/unfollow',
		method: 'post',
		data
	}),

	// 关注列表
	followList: (data) => request({
		url: 'user/follow_list',
		method: 'post',
		data
	}),
	// 绑定邀请码
	bindInviter: (data) => request({
		url: 'user/bind_inviter',
		method: 'post',
		data
	}),
	// 绑定邀请码
	inviteList: (data) => request({
		url: 'user/invite_list',
		method: 'post',
		data
	}),



	// 导航网站列表
	navList: (data) => request({
		url: 'jstx.NavSite/list',
		method: 'post',
		data
	}),
	// 修改个人信息接口
	profile: (data) => request({
		url: 'user/profile',
		method: 'post',
		data
	}),


	// 充值和提现
	recharge_withdrawal: (data) => request({
		url: 'user/recharge_withdrawal',
		method: 'post',
		data
	}),
	// 充值配置
	recharge_config: (data) => request({
		url: 'user/recharge_config',
		method: 'post',
		data
	}),
	// 充值
	userRecharge: (data) => request({
		url: 'user/recharge',
		method: 'post',
		data
	}),
	// 余额变动记录
	money_log: (data) => request({
		url: 'user/money_log',
		method: 'post',
		data
	}),
	// 提现申请
	withdraw: (data) => request({
		url: 'user/withdraw',
		method: 'post',
		data
	}),

	// 提现申请
	text: (data) => request({
		url: 'ajax/text',
		method: 'post',
		data
	})





}